package com.aspose.cells;

import java.security.Security;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

class za {
   Cipher a;

   za(String var1, String var2, byte[] var3, byte[] var4) throws Exception {
      SecretKeySpec var5 = new SecretKeySpec(var4, "AES");
      String var6 = "AES/" + var1 + "/" + var2;
      this.a = Cipher.getInstance(var6, "BC");
      this.a.init(2, var5, new IvParameterSpec(var3));
   }

   byte[] a(byte[] var1) throws Exception {
      return this.a.doFinal(var1);
   }

   static {
      byte var0 = 1;
      byte var1 = (byte)var0;
      Security.addProvider(new BouncyCastleProvider());
   }
}
